/*
 * @Author: sympsel sympsel@outlook.com
 * @Date: 2025-07-30 12:27:42
 * @LastEditors: sympsel sympsel@outlook.com
 * @LastEditTime: 2025-07-30 12:47:39
 * @FilePath: \work25_7_29\include\Stack.h
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

#pragma once
#include "universal.h"

class Stack {
private:
    int *_data;
    int _top;
    int _capacity;

public:
    Stack(int capacity = 10);

    ~Stack();

    void Push(int val);

    bool Empty();

    int Top();

    int Pop();
};
